package com.ztjc.day02_logcat;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

/**
 * Android中logcat的使用
 */
public class MainActivity extends Activity {

    private static final String TAG = "MainActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void verbose(View view) {
        Log.v(TAG, "verbose");
    }

    public void debug(View view) {
        Log.d(TAG, "debug");
    }

    public void info(View view) {
        Log.i(TAG, "info");
    }

    public void warn(View view) {
        Log.w(TAG, "warn");
    }

    public void error(View view) {
        Log.e(TAG, "error");
    }
}
